package com.jinbei.service;

import com.github.pagehelper.PageInfo;
import com.jinbei.domain.Role;

/**
 * @author zflu
 * 角色 service
 * Created by lucky on 2018/7/9.
 */
public interface RoleService {
    
    /**   
     * @author zflu
     * @Description  角色新增
     * @date 2018/7/9 15:14  
     * @param role
     * @return int  
     */ 
    int insertRole(Role role) throws Exception;

    /**
     * @author zflu
     * @Description  角色修改
     * @date 2018/7/9 15:15
     * @param role
     * @return int
     */
    int updateRole(Role role) throws Exception;

    /**
     * @author zflu
     * @Description 根据角色id删除角色
     * @date 2018/7/9 15:16
     * @param roleId
     * @return int
     */
    int deleteRoleByRoleId(int roleId) throws Exception;
    
    /**   
     * @author zflu
     * @Description 根据角色id查询角色
     * @date 2018/7/9 15:18  
     * @param roleId
     * @return com.jinbei.domain.Role  
     */ 
    Role queryRoleByRoleId(int roleId) throws Exception;

    /**
     * @author zflu
     * @Description  角色分页列表
     * @date 2018/7/12 9:17
     * @param pageNum, pageSize
     * @return com.github.pagehelper.PageInfo
     */
    PageInfo queryRolePage(int pageNum,int pageSize) throws Exception;
}
